class User:
	"""用户类"""
	def __init__(self, fist_name, last_name):
		self.fist_name = fist_name
		self.last_name = last_name
		self.login_attempts = 0

	def dscribe(self):
		print(f"用户摘要：{self.fist_name.title()} "
			f"{self.last_name.title()}")

	def greet_user(self):
		print(f"你好：{self.fist_name.title()} {self.last_name.title()}")

	def increment_login_attempts(self, increment_login_attempts):
		self.login_attempts += increment_login_attempts

	def reset_login_attempts(self):
		self.login_attempts = 0

class Admin(User):
	""" 管理员"""
	def __init__(self, fist_name, last_name):
		super().__init__(fist_name, last_name)
		self.privileges = ['can add post', 'can delete post', 'can ban user']
	def show_privileges(self) :
		super().dscribe()
		for privilege in self.privileges:
			print(f"\t - {privilege}")

admin = Admin("zhang", "san")
admin.show_privileges()